<?php
class MessageModel extends CI_Model{
    var $_name;
    var $_email;
    var $_message;
    var $_time;
    private $_table = 'message';
    
    function addNew(){
        $data = array(
            'name' => $this->_name,
            'email' => $this->_email,
            'message' => $this->_message,
            'time' => $this->_time
        );
        $this->db->insert($this->_table, $data);
    }
}
 ?>
 
